﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;
using System.Configuration;

namespace JA.Negocios
{
    public static partial class ModelBO
    {
        public static MySqlCommand getConnection()
        {
            try
            {
                MySqlConnection conn = new MySqlConnection(ConfigurationManager.ConnectionStrings["ConnString"].ConnectionString);
                MySqlCommand cmd = new MySqlCommand();
                cmd.Connection = conn;
                return cmd;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

    }
}
